﻿using System.Data;

namespace ConfExpert.Forms.Rapor.Aksesuar
{
    public partial class xrSubDugmeBoyama : DevExpress.XtraReports.UI.XtraReport
    {
        public xrSubDugmeBoyama()
        {
            InitializeComponent();
        }

        DataSet ds;
        DataTable dtDugmeBoy;
        public void fillTable(DataTable dt)
        {
            ds = new DataSet();
            dtDugmeBoy = new DataTable("dtDugmeBoy");
            ds.Tables.Add(dtDugmeBoy);
            dtDugmeBoy.Merge(dt);

            this.DataMember = dtDugmeBoy.TableName;
            this.DataSource = ds;

        }

        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.DataMember = dtDugmeBoy.TableName;
            this.DataSource = ds;

            tcBoy.DataBindings.Add("Text", null, "dtDugmeBoy.Boy");
            tcDosyaNo.DataBindings.Add("Text", null, "dtDugmeBoy.DosyaNo");
            tcCikisTalebi.DataBindings.Add("Text", null, "dtDugmeBoy.CikisTalebi");
            tcAdet.DataBindings.Add("Text", null, "dtDugmeBoy.Adet");
            xrBarCode1.DataBindings.Add("Text", null, "dtDugmeBoy.DugmeBoyamaId");
        }
    }
}
